<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 * 退回
 */
class CaseBack extends AppModel
{
    //

    const IS_STATUS_ONE = 1; //未处理
    const IS_STATUS_TWO = 2; //已处理
    const IS_STATUS_THREE = 3; //拒绝
    const IS_STATUS_SEVEN = 7; //销案


    public static $is_status = array(
        self::IS_STATUS_ONE => '待审核',
        self::IS_STATUS_TWO => '已审核',
        self::IS_STATUS_THREE => '已拒绝',
        self::IS_STATUS_SEVEN => '销案'
    );


    public function admin(){
        return $this->belongsTo(Admins::class,'admin_id')->field('id,username,unit_id');
    }
}
